package ooday02Exercise;

public class SuperDemo {
    public static void main(String[] args) {
//        Doo doo=new Doo();
        Boo boo=new Boo();


    }
}
class Coo{
    Coo(int a){
        System.out.println("超类的构造方法被调用了");
    }
}
class Doo extends Coo{

//    Doo(){
//        super(5);
//    }
    Doo(){
        super(5);
    }

}
class Aoo{
    Aoo(){
        System.out.println("超类的构造方法");
    }
}
class Boo extends Aoo{
    Boo(){
//       默认调用超类无参的构造方法
        super();
        System.out.println("派生类的构造方法");
    }
}
